package com.entity;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;


/**
 * The persistent class for the DETAILEDREQUIREMENTS database table.
 * 
 */
@Entity
@Table(name="DETAILEDREQUIREMENTS")
@NamedQuery(name="Detailedrequirement.findAll", query="SELECT d FROM Detailedrequirement d")
public class Detailedrequirement implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="DETAILEDREQUIREMENTS_SEQ", sequenceName="CHANCELOG_SEQ",initialValue=1,allocationSize=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="DETAILEDREQUIREMENTS_SEQ")
	private Long drid;

	@Temporal(TemporalType.DATE)
	private Date birth;

	private String content;

	private String importent;

	private BigDecimal logic;

	private String provider;

	@Temporal(TemporalType.DATE)
	private Date recodetime;

	private String theme;
	
	@Transient
	private String range1;
	
	@Transient
	private String range2;
	
	@Transient
	private String range3;
	
	@Transient
	private Date startDate;
	
	@Transient
	private Date endDate;
	
	@Transient
	private List<String> query;

	//bi-directional many-to-one association to Chanceinfo
	@ManyToOne
	@JoinColumn(name="CIID")
	private Chanceinfo chanceinfo;
	
	//bi-directional many-to-one association to Customer
	@ManyToOne
	@JoinColumn(name="CUSNO")
	private Customer customer;

	public Detailedrequirement() {
	}

	public Long getDrid() {
		return this.drid;
	}

	public void setDrid(Long drid) {
		this.drid = drid;
	}

	public Date getBirth() {
		return this.birth;
	}

	public void setBirth(Date birth) {
		this.birth = birth;
	}

	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getImportent() {
		return this.importent;
	}

	public void setImportent(String importent) {
		this.importent = importent;
	}

	public BigDecimal getLogic() {
		return this.logic;
	}

	public void setLogic(BigDecimal logic) {
		this.logic = logic;
	}

	public String getProvider() {
		return this.provider;
	}

	public void setProvider(String provider) {
		this.provider = provider;
	}

	public Date getRecodetime() {
		return this.recodetime;
	}

	public void setRecodetime(Date recodetime) {
		this.recodetime = recodetime;
	}

	public String getTheme() {
		return this.theme;
	}

	public void setTheme(String theme) {
		this.theme = theme;
	}

	public Chanceinfo getChanceinfo() {
		return this.chanceinfo;
	}

	public void setChanceinfo(Chanceinfo chanceinfo) {
		this.chanceinfo = chanceinfo;
	}

	public Customer getCustomer() {
		return customer;
	}

	public void setCustomer(Customer customer) {
		this.customer = customer;
	}

	public String getRange1() {
		return range1;
	}

	public void setRange1(String range1) {
		this.range1 = range1;
	}

	public String getRange2() {
		return range2;
	}

	public void setRange2(String range2) {
		this.range2 = range2;
	}

	public String getRange3() {
		return range3;
	}

	public void setRange3(String range3) {
		this.range3 = range3;
	}

	public Date getStartDate() {
		return startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	public List<String> getQuery() {
		return query;
	}

	public void setQuery(List<String> query) {
		this.query = query;
	}

}